/**
 * 员工相关的请求
 */
import Urls from '../ApiUrls';
import ApiBase from './ApiBase';

class ApiRole {


  addEmployee(parms) {
    return ApiBase.send(Urls.URL_EMPLOYEE_ADDING,parms);
  }

  getEmployee(parms) {
    return ApiBase.send(Urls.URL_ROLE_EMPLOYEE,parms);
  }

  deleteEmployee(parms) {
    return ApiBase.send(Urls.URL_EMPLOYEE_DELETE,parms);
  }

  getUserOperationList(parms) {
    return ApiBase.send(Urls.URL_USER_OPERATION_LIST,parms);
  }

  getUserOperationList(parms) {
    return ApiBase.send(Urls.URL_USER_OPERATION_LIST,parms);
  }

  addRole(parms) {
    return ApiBase.send(Urls.URL_ROLE_ADD,parms);
  }

  deleteRole(parms) {
    return ApiBase.send(Urls.URL_ROLE_DELETE,parms);
  }

  getRoleListPage(parms) {
    return ApiBase.send(Urls.URL_ROLE_PAGE,parms);
  }

  getRoleList() {
    return ApiBase.send(Urls.URL_ROLE_LIST,{});
  }

  getRoleById(parms) {
    return ApiBase.send(Urls.URL_ROLE_BY_ID,parms);
  }

  getModuleFunctionList() {
    return ApiBase.send(Urls.URL_MODULE_FUNCTION_LIST,{});
  }

  getStoreList(parms) {
    return ApiBase.send(Urls.URL_SHOP_LIST,parms);
  }

  addStore(parms) {
    return ApiBase.send(Urls.URL_SHOP_ADD,parms);
  }

  getAllShop() {
    return ApiBase.send(Urls.URL_ALL_SHOP,{});
  }

  deleteStore(parms) {
    return ApiBase.send(Urls.URL_SHOP_DELETE,parms);
  }

  getModule(parms) {
    return ApiBase.send(Urls.URL_MODULES,parms);
  }

  addModule(parms) {
    return ApiBase.send(Urls.URL_MODULE_ADDING,parms);
  }

  getFunctions(parms) {
    return ApiBase.send(Urls.URL_GET_FUNCTIONS,parms);
  }

  addFunction(parms) {
    return ApiBase.send(Urls.URL_FUNCTION_ADDING,parms);
  }

  deleteFunction(parms) {
    return ApiBase.send(Urls.URL_FUNCTION_DELETE,parms);
  }

  getFunctionById(parms) {
    return ApiBase.send(Urls.URL_FUNCTION_BY_ID,parms);
  }

  clearOperationRecord() {
    return ApiBase.send(Urls.URL_CLEAR_OPERATION,{});
  }

  getPromoteEmployee(parms) {
    return ApiBase.send(Urls.URL_PROMOTE_EMPLOYEE,parms);
  }

  getDistributeCouponRole(parms) {
    return ApiBase.send(Urls.URL_DISTRIBUTE_COUPON_ROLE, parms);
  }
}
export  default  ApiRole
